﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ShootSearch.Parsers
{
    /// <summary>
    /// Content Parsers from system, using IFilter interface in the system
    /// </summary>
    public class DocFilter: IFilter
    {

        public DocFilter()
        {
            Extensions = new List<string>();
            ContentType = new List<string>();
            ContentType.Add("*/*");
        }

        #region IFilter Members

        public List<string> Extensions { get; protected set; }

        public List<string> ContentType { get; protected set; }

        public bool Parse(string url, Encoding encoding, string contentType, byte[] content, out object doc)
        {
            doc = null;
            return true;
        }

        #endregion

        #region IConfigable Members

        public ShootSearch.Core.SpiderManConfig Config
        {
            get
            {
                throw new NotImplementedException();
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        #endregion
    }
}
